package patrol.mobile.com.mobilepatrol.adapter;

import android.content.Context;

import com.dl7.recycler.adapter.BaseQuickAdapter;
import com.dl7.recycler.adapter.BaseViewHolder;

import patrol.mobile.com.mobilepatrol.R;
import patrol.mobile.com.mobilepatrol.bean.KeShiListBean;

/**
 * Created by K on 2018/9/18.
 * des:收费服务区和分局
 */
public class FuWuQuAndFenJuAdapter extends BaseQuickAdapter<KeShiListBean> {
    public FuWuQuAndFenJuAdapter(Context context) {
        super(context);
    }

    @Override
    protected int attachLayoutRes() {
        return R.layout.item_fuwuqu_fenju;
    }

    @Override
    protected void convert(BaseViewHolder holder, KeShiListBean item) {
        holder.setText(R.id.tv_num, (holder.getAdapterPosition() + 1) + "");
        holder.setText(R.id.tv_keshi, item.getOrgName());
        holder.setText(R.id.tv_score, item.getTotalScore() + "分");
    }
}
